package com.chixing.day07_adstract.Interfaces1;

public abstract class Mainboard implements Cpu{


        VideoCard vc;
        Cpu cpu;

        String name;
        Mainboard(){
            name= "Chen bin de mainboard";

        }

        void setVideoCard(VideoCard vc){

            this.vc = vc;
        }

        void setCpu(Computer cpu){

            this.cpu = (Cpu) cpu;

        }
        public void run(){
            System.out.println(name);
            System.out.println();
            cpu.run();

            System.out.println();
//            vc.videoClosing();
            System.out.println("mainboard is working");

        }


    }

